package com.boss.salary.dao;

import com.boss.framework.dto.PaginationDTO;
import com.boss.salary.entity.FileInfo;

import java.util.List;

public interface IFileInfoDao {

    void insertFileInfo(FileInfo fileInfo);

    void deleteFileInfo(String id);

    void deleteEnclosureByIds(List<String> id);
    void deleteEnclosureByFileIds(List<String> id);
    List<FileInfo> getFileInfo(PaginationDTO paginationDTO, List<String> personIds, String operateType, String agencyId, String mofDivCode, String salary_month);

    /**
     * 获取附件列表总条数
     * @param personIds
     * @param operateType
     * @param agencyId
     * @param mofDivCode
     * @param salary_month
     * @return
     */
    Integer getFileInfoCount( List<String> personIds, String operateType, String agencyId, String mofDivCode, String salary_month);


    Integer getFileInfoByFileId(String personId,String mofDivCode);

    int queryPersonFileNum(String id, String agencyId, String operateType,String mofDivCode);

    List<FileInfo> getFileInfoByAgencyId(PaginationDTO paginationDTO,String agencyId,String mofDivCode ,String salary_month);

    /**
     * 获取通过单位id查询条数
     * @param agencyId
     * @param mofDivCode
     * @param salary_month
     * @return
     */
    int getFileInfoCountByAgencyId(String agencyId,String mofDivCode ,String salary_month);
    int selectHaveFilePersonCount(String agencyId, String salaryMonth, List<String> personIdList);

    List<FileInfo> queryExcel(List<String> list, String agencyId, String mofDivCode, String salary_month);
}
